home *** CD-ROM | disk | FTP | other *** search
/ Info-Mac 4 / Info_Mac IV CD-ROM (Pacific HiTech Inc.)(August 1994).iso / Science / RLaB / help / sort < prev    next >
Text File  |  1994-04-25  |  592b  |  23 lines

  1. sort:
  2.  
  3. Syntax:    sort ( A )
  4.  
  5. Description:
  6.  
  7.     If A is a vector (either row or column): 
  8.  
  9.       Then sort returns a list, containing the sorted values and
  10.       indices. List element names are `val' and `ind'.
  11.  
  12.     If A is a matrix (m >= 2):
  13.  
  14.       Then sort returns a list, containing a matrix with the
  15.       sorted columns of A, and a matrix containing the sorted
  16.       indices of A.
  17.  
  18.     Numerical matrices are sorted in ascending numerical value.
  19.     Complex matrices are sorted by absolute value.
  20.     String matrices are sorted alphabetically (using strcmp()).
  21.  
  22.     The sort function uses a simplistic version of qsort().
  23.